
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="indexleft">

	<s:if test="#session.user == null">
		<h3>Login</h3>
		<div id="login">
			<s:form id="form" action="login">
				<s:hidden name="isLogin" value="true" />
				<s:textfield name="loginEmail" label="Email" value="" />
				<s:password name="loginPassword" label="Password" value=""
					labelposition="left" />
				<s:submit type="button" value="Login">
				</s:submit>

			</s:form>
			<div align="center">
				<a>For login problems contact us </a> <a
					href="mailto:support.opencities@upf.edu">here</a>
			</div>
		</div>

		<div align="center" id="indexSignUp">
			<a style="font-size: 12px">Don't you have an account?</a>
			<s:form action="signUp">
				<s:submit type="button">Sign Up Now!</s:submit>
			</s:form>
		</div>
	</s:if>
	<s:else>
		<h3>Logged as:</h3>
		<p>
			<s:property value="#session.user.email" />
			(
			<s:a action='logout'>logout</s:a>
			)
		</p>
	</s:else>

</div>